/*
 * Created on Nov 3, 2003
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.recruiter.struts;


import org.vectrics.hibernate.ThreadProperties;
import org.vectrics.recruiter.config.RecruitConfig;
import org.vectrics.struts.Request;
import org.vectrics.user.web.struts.UserProfileForm;


public class RecruitPersonProfileForm extends UserProfileForm {

	private static final long serialVersionUID = 7238767331913774875L;

	private boolean lookingFullTime;
	private boolean lookingPartTime;
	private boolean lookingPermanent;
	private boolean lookingContract;
	private int travelPercent = 0;
	private boolean activeCandidate = true;
	
	protected void onError(Request request) {
	}

	protected boolean getUserNameRequired() {
		return(false);
	}

	protected boolean getNewUserNameRequired() {
		return(false);
	}

	protected boolean getNameRequired() {
		return(true);
	}

	protected boolean getPasswordRequired() {
		return(false);
	}
	
	protected boolean getEmailRequired() {
		return(false);
	}
	/**
	 * @return
	 */
	public boolean getLookingContract() {
		return lookingContract;
	}

	/**
	 * @param lookingContract
	 */
	public void setLookingContract(boolean lookingContract) {
		this.lookingContract = lookingContract;
	}

	/**
	 * @return
	 */
	public boolean getLookingFullTime() {
		return lookingFullTime;
	}

	/**
	 * @param lookingFullTime
	 */
	public void setLookingFullTime(boolean lookingFullTime) {
		this.lookingFullTime = lookingFullTime;
	}

	/**
	 * @return
	 */
	public boolean getLookingPartTime() {
		return lookingPartTime;
	}

	/**
	 * @param lookingPartTime
	 */
	public void setLookingPartTime(boolean lookingPartTime) {
		this.lookingPartTime = lookingPartTime;
	}

	/**
	 * @return
	 */
	public boolean getLookingPermanent() {
		return lookingPermanent;
	}

	/**
	 * @param lookingPermanent
	 */
	public void setLookingPermanent(boolean lookingPermanent) {
		this.lookingPermanent = lookingPermanent;
	}
	/**
	 * @return
	 */
	public int getTravelPercent() {
		return travelPercent;
	}

	/**
	 * @param travelPercent
	 */
	public void setTravelPercent(int travelPercent) {
		this.travelPercent = travelPercent;
	}

	/**
	 * @return
	 */
	public boolean getActiveCandidate() {
		return activeCandidate;
	}

	/**
	 * @param activeCandidate
	 */
	public void setActiveCandidate(boolean activeCandidate) {
		this.activeCandidate = activeCandidate;
	}

	protected boolean getPasswordHintRequired() {
		return(RecruitConfig.getRecruitInstance().getAllowPasswordEmail(ThreadProperties.getDomain()));
	}

	protected boolean getCompanyRequired() {
		return(false);
	}
	
}
